The switch to GNOME_COMPILE_WARNINGS() caused -Wall and other
warnings to not actually be used since GNOME_COMPILE_WARNINGS()
just sets WARN_CFLAGS. Add WARN_CFLAGS to AM_CFLAGS so that
it takes effect.
Add -Wno-error=deprecated-declarations so that when -Werror is
enabled, we don't fail on all the deprecated cogl and clutter
symbols.
https://bugzilla.gnome.org/show_bug.cgi?id=730408
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
GNOME_COMPILE_WARNINGS([error])
+case "$WARN_CFLAGS" in
+ *-Werror*)
+ WARN_CFLAGS="$WARN_CFLAGS -Wno-error=deprecated-declarations"
+ ;;
+esac
+
+AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
+AC_SUBST(AM_CFLAGS)
BROWSER_PLUGIN_DIR="${BROWSER_PLUGIN_DIR:-"\${libdir}/mozilla/plugins"}"
AC_ARG_VAR([BROWSER_PLUGIN_DIR],[Where to install the plugin to])
}
static void
-establish_timeout ()
+establish_timeout (void)
{
if (timeout_id != 0)
g_source_remove (timeout_id);
break;
case CLUTTER_BOX_ALIGNMENT_END:
align = ST_ALIGN_END;
+ break;
+ default:
+ g_assert_not_reached ();
}
g_value_set_enum (value, align);
break;
break;
case ST_ALIGN_END:
align = CLUTTER_BOX_ALIGNMENT_END;
+ break;
+ default:
+ g_assert_not_reached ();
}
g_object_set (meta, g_param_spec_get_name (pspec), align, NULL);
break;
#include "config.h"
+#define COGL_ENABLE_EXPERIMENTAL_API /* for cogl_framebuffer_allocate */
+
#include "st-texture-cache.h"
#include "st-private.h"
#include <gtk/gtk.h>